import React from 'react'
import { Space, Spin } from 'antd';
type Props = {
    tip?: string
}

export default function Loading({ tip }: Props) {
    const title = tip ? tip : 'Loading'
    return (
        <Space style={{
            width: '100%',
            height: '100%',
            display: 'flex',
            justifyContent: 'center',
            alignItems: 'center'
        }}>
            <Spin tip={title} size="large">
                <div style={{
                    padding: "50px",
                    borderRadius: "4px"
                }} />
            </Spin>
        </Space>
    )
}